function AddMasks()
{
  MaskedInput({
    elm: document.getElementById('cuil'),
    format: '__-________-_',
    onbadkey: function(){
      ShakeShake({ elm: document.getElementById('cuil') });
    }, badkeywait: 400
  });
}
function FlashBang(args)
{
  try {
    var elm = args['elm'],
      color = args['color'] || '#f55',
      prop  = args['prop']  || 'backgroundColor',
      delta = args['delta'] || 80,
      origStyle = elm.style[prop];
    elm.style[prop] = color;
    setTimeout(function(){ FlashOff(); },delta);
  } catch(e) { return; }
  function FlashOff() { elm.style[prop] = origStyle; }
}
function appendOnLoad(fx) { 
  try { // For browsers that know DOMContentLoaded (FF, Safari, Opera)
    document.addEventListener("DOMContentLoaded", fx, false);
  } catch(e) {
    var old = window.onload;
    if (typeof old != 'function') { window.onload = fx; }
    else { window.onload = function() { old(); fx(); } }
  }
}
appendOnLoad(AddMasks);